<template>
  <view class="result">
    <view class="result_box result_success" v-if="resSuccess">
      <!-- <view class='at-icon at-icon-check' size="30" color='#fff'></view> -->
      <AtIcon value='check' size='50' color='#FFF' class="result_icon"></AtIcon>
    </view>
    <view class="result_box result_error" v-else>
      <!-- <view class='at-icon at-icon-check' size="30" color='#fff'></view> -->
      <AtIcon value='close' size='50' color='#FFF' class="result_icon"></AtIcon>
    </view>
    <view class="result_text" v-if="resSuccess">核销成功</view>
    <view class="result_text" v-else>核销失败</view>
    <view class="result_text">
      <!-- <AtButton type='primary' size='normal' style="width:80px">返 回</AtButton> -->
      <view class="result_button" @tap="goBack()">返 回</view>
    </view>
  </view>
</template>

<script>
import Taro from '@tarojs/taro'
import './result.module.scss'
export default {
  name: 'scanResult',
  data(){
    return{
      resSuccess: false
    }
  },
  mounted(){
  },
  methods:{
    goBack(){
      Taro.navigateBack({
      })
    }
  },
}
</script>